<?php
require('.config.php');
//print "connecting";
mysql_connect($host,$user,$password);
mysql_select_db($database) or die( "Unable to select database");

if(isset($_GET['keyword']))	{
    $query = "SELECT NDB_No, Long_Desc FROM ". $prefix ."FOOD_DES WHERE Long_Desc LIKE '%". mysql_real_escape_string($_GET['keyword']) ."%' LIMIT 50;";
    $results= mysql_query($query);
    while ($row=mysql_fetch_array($results)) {
        print($row[1]."\n");                       }
}
mysql_close();
?>
